import { createSSRApp } from 'vue';
import uView from './uni_modules/vk-uview-ui';
// #ifdef H5
import Antd from 'ant-design-vue'
import gaodeMap from '@allin-components/gaode-map-gl';
import Taishan from 'allin-taishan-component'
import Directives from '@/directives/index';
import 'ant-design-vue/dist/antd.css'
import('allin-taishan-component/lib/theme-default/index.css')
import('allin-taishan-component/lib/style.css')
// #endif
import { setupStore } from '@/store';
import App from './App.vue';
import { setupI18n } from './locales';
export function createApp() {
  const app = createSSRApp(App);

  app.use(uView);
  // #ifdef H5
  app.use(Antd)
  app.use(gaodeMap)
  app.use(Taishan)
  app.use(Directives);
  // #endif
  setupStore(app);
  setupI18n(app);
  return {
    app
  };
}
